package com.jzx.provider.cv.repository;

import com.jzx.provider.cv.model.CerInfo;
import com.jzx.provider.cv.model.School;
import com.jzx.provider.cv.model.University;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Created by dhh on 2019/12/21
 */
public interface UniversityRepository extends JpaRepository<University, Integer> {
    @Query(nativeQuery = true, value = "select * from t_university limit :start,:end")
    List<University> findByPage(@Param("start") Integer start,@Param("end") Integer end);

    University findByNameOrShortName(String name,String shortName);
}
